package com.athenaeum.datastore.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.athenaeum.datastore.domain.Department;
import com.athenaeum.datastore.repository.DepartmentRepository;
import com.athenaeum.datastore.service.DepartmentService;

@Service
public class DepartmentServiceImpl implements DepartmentService {

	@Resource
	private DepartmentRepository departmentRepository;

	@Override
	public Department findOne(String departmentId) {
		return departmentRepository.findOne(departmentId);
	}

	@Override
	public Department save(Department department) {
		return departmentRepository.save(department);
	}

}
